package com.wenson.creational.factory;

/**
 * @author: luowangcheng
 * @data：2024/6/10 18:09
 * @description:
 */
public class BossFactory implements Factory{
    @Override
    public Enemy create(int screenWidth) {
        // 让Boss出现在屏幕中央
        return new Boss(screenWidth/2, 0);
    }
}
